﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestFulService
{
    //班别业务
    public class ShiftBiz
    {
        /// <summary>
        /// 门店号
        /// </summary>
        public string storeid { get; set; }
        /// <summary>
        /// POS机号
        /// </summary>
        public string posno { get; set; }
        /// <summary>
        /// 收银员ID
        /// </summary>
        public string userid { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal amt { get; set; }
    }

    //返回班别信息
    public class ShiftList
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 成功
        /// </summary>
        public string msg { get; set; }

        public List<ShiftData> TCShiftList { get; set; }

        //班别主表
        public class ShiftData
        {
            /// <summary>
            /// 收银员ID
            /// </summary>
            public string userid { get; set; }
            /// <summary>
            /// 班别状态
            /// </summary>
            public string shiftstate { get; set; }
            /// <summary>
            /// 班别号
            /// </summary>
            public string shiftno { get; set; }
            /// <summary>
            /// 营业毛额
            /// </summary>
            public decimal grosalamt { get; set; }
            /// <summary>
            /// 折扣金额
            /// </summary>
            public decimal discamt { get; set; }
            /// <summary>
            /// 销售金额
            /// </summary>
            public decimal saleamt { get; set; }
            /// <summary>
            /// 交易笔数
            /// </summary>
            public int flowcount { get; set; }
            /// <summary>
            /// 借零金额
            /// </summary>
            public decimal paidinamt { get; set; }
            /// <summary>
            /// 投库金额
            /// </summary>
            public decimal paidoutamt { get; set; }
            /// <summary>
            /// 开班时间
            /// </summary>
            public string begdate { get; set; }
            /// <summary>
            /// 交班时间
            /// </summary>
            public string enddate { get; set; }

            public List<ShiftPay> ShiftPayList { get; set; }
        }

        public class ShiftPay
        {
            /// <summary>
            /// 交班时间
            /// </summary>
            public int lineno { get; set; }
            /// <summary>
            /// 支付别
            /// </summary>
            public string payway { get; set; }
            /// <summary>
            /// 支付金额
            /// </summary>
            public decimal payamt { get; set; }

        }
    }

}
